<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox">

	<ui:param name="pvb" value="#{commonContentViewBean.parent}" />
	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	<ui:param name="compId" value="#{pageViewBean.id}" />
	<ui:param name="compTitle" value="人员调动" />


	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
		    <ui:param name="compColumnNum" value="1" />
		    <ui:param name="compLabelStyle" value="width:15%;"/>
		    <ui:param name="compContentStyle" value="width:35%;"/>
		    
			<!-- 第一行 -->
			<ui:decorate template="/layout/input/editable-1c-custom-template.xhtml">
				<ui:param name="compBeanId" value="beforeunit" />
				<ui:param name="compBeanLable" value="当前所在部门：" />
				
				<ui:define name="compBeanContent">
					<h:inputText readonly="true" id="beforeunit" value="#{pageViewBean.beforeunit}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第二行 -->
			<ui:decorate template="/layout/input/editable-1c-custom-template.xhtml">
				<ui:param name="compBeanId" value="movereason" />
				<ui:param name="compBeanLable" value="调动原因描述：" />
				<ui:param name="compBeanRequired" value="true" />
				
				<ui:define name="compBeanContent"> 
				    <h:inputTextarea style="width:80%;overflow:auto;"
					    id="movereason" effectDuration="400"
					    styleClass="{required:true}"
					    value="#{commonContentViewBean.movereason}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第三行 -->
			<ui:decorate template="/layout/input/editable-1c-custom-template.xhtml">
				<ui:param name="compBeanId" value="afterunit" />
				<ui:param name="compBeanLable" value="调入新部门：" />
				<ui:param name="compBeanRequired" value="true" />
				
				<ui:define name="compBeanContent"> 
					<sinox:codeSetInputTree id="afterunit" styleClass="{required:true}" codeSetId="id_c_sys_org" value="#{pageViewBean.afterunit}" formId="#{commonContentViewBean.id}_form"/>
				</ui:define>
			</ui:decorate>
			
		</ui:decorate>

	</ui:define>

	<ui:define name="compButtons">
		<p:commandButton
			actionListener="#{orgAction.removeOrgAction}" title="保存"
			onstart="return SinoPortal.Validation.validateForm('#{compId}_form')"
			oncomplete="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			update="#{pvb.id}_left_form:#{pvb.id}_tree,#{pvb.id}_right_form">
			<h:inputHidden value="#{pageViewBean.id}" />
		</p:commandButton>
		
		<p:commandButton title="关闭" type="button"
			onclick="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/cancel.png" value="关闭" style="margin:5px;">
		</p:commandButton>
	</ui:define>

</ui:composition>